package com.zgm.ch04._4_2;

import java.lang.reflect.Method;

import org.springframework.beans.factory.support.MethodReplacer;

public class FormatMessageReplacer implements MethodReplacer {

	public Object reimplement(Object obj, Method method, Object[] args)
			throws Throwable {
		String msg = (String) args[0];
		
		return "<h2>" + msg + "</h2>";
	}

	
}
